﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RRTWSEntityDSD.Dominio;
using System.ServiceModel.Web;

namespace RRTWSEntityDSD.ServiceEntidad.WFCServiceREST
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWCFEstadiosService" in both code and config file together.
    [ServiceContract]
    public interface IWCFEstadiosService
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Estadios", ResponseFormat = WebMessageFormat.Json)]
        Estadio CrearEstadio(Estadio estadioACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Estadios/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        Estadio ObtenerEstadio(string codigo);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Estadios", ResponseFormat = WebMessageFormat.Json)]
        Estadio ModificarEstadio(Estadio estadioAModificar);

        
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Estadios/Ubigeos/{codigUbigeo}", ResponseFormat = WebMessageFormat.Json)]
        List<Estadio> listarEstadioPorUbigeo(string codigUbigeo);
    }
}
